using System;
using Gtk;
using Glade;

namespace Vortex
{

public class MainFrame
{
	public static string Home = "http://www.google.com";
	
	public static void Main (string[] args)
	{
		new MainFrame (args);
	}

	public MainFrame (string[] args)
	{
		Application.Init ();
		
		Glade.XML gxml = new Glade.XML("gui.glade", "window1", null);
		gxml.Autoconnect (this);
		
		Vortex.WebKitNotebook notebook = new Vortex.WebKitNotebook();
		
		Gtk.Frame browserframe = gxml.GetWidget("frame1") as Frame;
		browserframe.Add(notebook);
		Application.Run ();
	}

	// Connect the Signals defined in Glade
	private void OnWindowDeleteEvent (object sender, DeleteEventArgs a)
	{
		Application.Quit ();
		a.RetVal = true;
	}
}
}